<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>拉钩招聘</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<style>
    a{
		color: blue;
	}
</style>
    <script src="static/js/jquery.js" type="text/javascript"></script>

</head>
<body>
<h1>拉钩招聘</h1>

  userId: <input type="text" id="userId" />
  <br/>
  <button onclick="lk('login','')">登录</button>
  <button onclick="lk('cvUpload','')">上传简历</button>

  <br/>
  <table border=1>
	<tr>
		<th>公司</th>
		<th>职位</th>
		<th>操作</th>
	</tr>
	<tr>
		<td>国务院</td>
		<td>总统</td>
		<td>
		  <a onclick="lk('click','country_president')">点击</a>
		  <a onclick="lk('jobCollect','country_president')">收藏</a>
		  <a onclick="lk('cvSend','country_president')">投简历</a>
		</td>
	</tr>
	<tr>
		<td>腾讯</td>
		<td>CTO</td>
		<td>
		  <a onclick="lk('click','tencent_CTO')">点击</a>
		  <a onclick="lk('jobCollect','tencent_CTO')">收藏</a>
		  <a onclick="lk('cvSend','tencent_CTO')">投简历</a>
		</td>
	</tr>
	<tr>
		<td>阿里巴巴</td>
		<td>爸爸</td>
		<td>
		  <a onclick="lk('click','alibaba')">点击</a>
		  <a onclick="lk('jobCollect','alibaba')">收藏</a>
		  <a onclick="lk('cvSend','alibaba')">投简历</a>
		</td>
	</tr>
  </table>

</body>

	<script type="text/javascript">
		function lk(action,jobCode){
        var info = {};
        info.userId = $("#userId").val();
        info.actTime = new Date();
        info.action = action;
        info.jobCode = jobCode;
        $.ajax({
            type: "post",
            url: "/lagou",
            data: JSON.stringify(info),
            success: function(res){
            }
        });
    }

	</script>
</html>
